﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace MotoGame.Estados.Intro
{
    class Intro:EstadoBase
    {
        float tempo;

        public Intro(ContentManager Content)
            :base(Content)
        {
            
        }

        public override void Update(GameTime gameTime)
        {
           Game1.teclado_atual = Keyboard.GetState();

           tempo += gameTime.ElapsedGameTime.Milliseconds;

            if (Game1.teclado_atual.IsKeyDown(Keys.Enter) || tempo >= 5000) 
            {
                Game1.estado_atual = Game1.Estado.MENU;
            }
               
        }

        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
           
        }

    }
}
